Drop gdk_device_get_position
authorMatthias Clasen <mclasen@redhat.com>
Tue, 26 Mar 2019 00:28:08 +0000 (20:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Mar 2019 22:12:55 +0000 (18:12 -0400)
It is no longer used.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkdevice.c
gdk/gdkdevice.h

index 76bfc40fec9d79c70f2e461c78c6f94366a2400f..5e91f9c21e3259043c5fb3c568b1c67b725e7e70 100644 (file)
@@ -509,7 +509,6 @@ gdk_device_ungrab
 
 <SUBSECTION>
 gdk_device_get_state
-gdk_device_get_position
 gdk_device_get_position_double
 gdk_device_get_surface_at_position
 gdk_device_get_surface_at_position_double
index 7544c4e012ee3f36d5328b305d1c921b6200d6d5..2044becfe54b82008ddc1a013604522ff88fd45d 100644 (file)
@@ -567,32 +567,6 @@ gdk_device_get_position_double (GdkDevice        *device,
     *y = tmp_y;
 }
 
-/**
- * gdk_device_get_position:
- * @device: pointer device to query status about.
- * @x: (out) (allow-none): location to store root window X coordinate of @device, or %NULL.
- * @y: (out) (allow-none): location to store root window Y coordinate of @device, or %NULL.
- *
- * Gets the current location of @device. As a slave device
- * coordinates are those of its master pointer, This function
- * may not be called on devices of type %GDK_DEVICE_TYPE_SLAVE,
- * unless there is an ongoing grab on them, see gdk_device_grab().
- **/
-void
-gdk_device_get_position (GdkDevice *device,
-                         gint      *x,
-                         gint      *y)
-{
-  gdouble tmp_x, tmp_y;
-
-  gdk_device_get_position_double (device, &tmp_x, &tmp_y);
-  if (x)
-    *x = round (tmp_x);
-  if (y)
-    *y = round (tmp_y);
-}
-
-
 /**
  * gdk_device_get_surface_at_position_double:
  * @device: pointer #GdkDevice to query info to.
index f491189fdf3bfe6d21be717d410b0d4e1bd2f7d2..aa07f3f9b17aad0707281e7f2152edebaf640667 100644 (file)
@@ -167,10 +167,6 @@ void     gdk_device_get_state    (GdkDevice         *device,
                                   gdouble           *axes,
                                   GdkModifierType   *mask);
 GDK_AVAILABLE_IN_ALL
-void     gdk_device_get_position (GdkDevice         *device,
-                                  gint              *x,
-                                  gint              *y);
-GDK_AVAILABLE_IN_ALL
 GdkSurface *
          gdk_device_get_surface_at_position
                                  (GdkDevice         *device,